package com.lemon.blog.system.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.lemon.common.core.annotation.Excel;
import com.lemon.common.core.serializer.JsonLongDeserializer;
import com.lemon.common.core.serializer.JsonLongSerializer;
import com.lemon.common.core.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 包名称：com.lemon.blog.domain
 * 类名称：BlMusic
 * 类描述：音乐欣赏对象 bl_music
 * 创建人：@author huangpeng
 * 创建时间：2022-05-04
 */
public class BlMusic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 音乐id */
    @JsonSerialize(using = JsonLongSerializer.class)
    @JsonDeserialize(using = JsonLongDeserializer.class)
    private Long id;

    /** 歌曲名 */
    @Excel(name = "歌曲名")
    private String name;

    /** 歌手 */
    @Excel(name = "歌手")
    private String artist;

    /** 歌曲链接 */
    @Excel(name = "歌曲链接")
    private String url;

    /** 封面 */
    @Excel(name = "封面")
    private String cover;

    /** 歌词 */
    private String lrc;

    /** 是否启用，0否1是 */
    @Excel(name = "是否显示", dictType = "sys_show_hide")
    private String enable;

    /** 是否删除，0否2是 */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setArtist(String artist) 
    {
        this.artist = artist;
    }

    public String getArtist() 
    {
        return artist;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setLrc(String lrc) 
    {
        this.lrc = lrc;
    }

    public String getLrc() 
    {
        return lrc;
    }
    public void setEnable(String enable) 
    {
        this.enable = enable;
    }

    public String getEnable() 
    {
        return enable;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("artist", getArtist())
            .append("url", getUrl())
            .append("cover", getCover())
            .append("lrc", getLrc())
            .append("createTime", getCreateTime())
            .append("enable", getEnable())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
